package net.chenlin.dp.modules.business.dao;

import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.business.entity.po.DevicePo;
import net.chenlin.dp.modules.business.entity.vo.TerminalDeviceManageVo;
import net.chenlin.dp.modules.business.entity.vo.TestTerminalAndElectricityMeterVo;
import net.chenlin.dp.modules.business.entity.vo.device.Device;
import net.chenlin.dp.modules.business.entity.vo.device.DeviceInfoVo;
import net.chenlin.dp.modules.sys.dao.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 终端管理mapper
 * @author yangsm
 */
@Mapper
public interface TerminalDeviceManageMapper extends BaseMapper<TerminalDeviceManageVo> {

    List<Device> getTerminalList(Page<Device> page, Query query);

    TestTerminalAndElectricityMeterVo getTerminalInfo(String serialNumber);

    DeviceInfoVo getDeviceList(@Param("deviceNo") String deviceNo);

    void insertDevice(DevicePo po);

    void editDevice(DevicePo po);

    Device getDevice(Long id);

    void deleteDevice(Long id);
}
